<%@page pageEncoding="UTF-8"%>
<%@ include file="../WEB-INF/jspf/cabecalho.jspf" %>
<%@ include file="../WEB-INF/jspf/acesso.jspf" %>
<%@ include file="../WEB-INF/jspf/setMeta.jspf" %>

<sql:query var='rsetReg' dataSource='${con}'>    
    SELECT Solicitacao.idSolicitacao, Solicitacao.solicitante, Solicitacao.dataAbertura, Solicitacao.horaAbertura,
    Solicitacao.status, Solicitacao.equipe, Solicitacao.tecnico FROM Solicitacao
    WHERE Solicitacao.status='Arquivada'
    ORDER BY Solicitacao.idSolicitacao ASC
</sql:query>

<form name="form1" method="post" action="">
  <fieldset>
  <legend><font color="#0000FF"><strong>Solicita&ccedil;&otilde;es Atendidas</strong></font></legend>
  <br/>
  <table width="100%" border="1" bordercolor="#0000FF" id="solicitacoes">   
    <tr bgcolor="#00CCFF"> 
      <td width="8%"><div align="center"><strong>N&uacute;mero</strong></div></td>
      <td width="40%"><div align="center"><strong>Solicitante</strong></div></td>
      <td width="8%"><div align="center"><strong>Data</strong></div></td>
      <td width="8%"><div align="center"><strong>Hora</strong></div></td>
      <td width="8%"><div align="center"><strong>Status</strong></div></td>
      <td width="8%"><div align="center"><strong>Equipe</strong></div></td>
      <td width="20%"><div align="center"><strong>T&eacute;cnico</strong></div></td>
      <td width="10%" colspan="6"><div align="center"><strong>Manuten&ccedil;&atilde;o</strong></div></td>
    </tr>
    <c:forEach var="row" items="${rsetReg.rowsByIndex}">
        <tr> 
            <td><div align="left"></div>${row[0]}</td>
            <td><div align="left"></div>${row[1]}</td>
            <td><div align="left"></div>${row[2]}</td>
            <td><div align="left"></div>${row[3]}</td>
            <td><div align="left"></div>${row[4]}</td>
            <td><div align="left"></div>${row[5]}</td>
            <td><div align="left"></div>${row[6]}</td>
            <td><div align="center"><a href="visualizarSolicitacao.jsp?chv1=${row[0]}"><img src="imagens/icones/visualizar.gif" alt="Visualizar a solicita&ccedil;&atilde;o" width="16" height="16" border="0" /></a></div></td>
            <td><div align="center"><img src="imagens/icones/solucao.gif" onclick="javascript:window.open('registrarSolucaoAdotada.jsp?chv1=<c:out value="${row[0]}"/>','teste','height=400,width=600,scrollbars=yes,status=yes,left = 300,top=100')" style="cursor:hand" width="16" height="16" border="0" /></a></div></td>
            <td><div align="center"><img src="imagens/icones/historico.gif" onclick="javascript:window.open('visualizarHistoricoDoAtendimento.jsp?chv1=<c:out value="${row[0]}"/>','teste','height=400,width=600,scrollbars=yes,status=yes,left = 300,top=100')" style="cursor:hand" width="16" height="16" border="0" /></a></div></td>
        </tr>
    </c:forEach>
  </table>
  <script language="javascript" type="text/javascript" >
      
      function janelaDelegar()
      {
      delegar = window.open('visualizarUsuariosDoSistema.jsp','teste',height=100,width=400,menubar=yes,toolbar=ye,location=yes,scrollbars=yes,status=yes,left = 300,top=100)
      }
      
  </script>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  </fieldset>
</form>

</body>
</html>
